import 'package:flutter/material.dart';
import 'Constants.dart' show AppColors;

/**
 * 底部item
 */
class NavigationView {
  BottomNavigationBarItem item;

  NavigationView(
      {Key key, String title, Color color, IconData icon, IconData activeIcon})
      : item = BottomNavigationBarItem(
            icon: Icon(
              icon,
            ),
            title: Text(
              title,
              style: TextStyle(fontSize: 14),
            ),
            activeIcon: Icon(
              activeIcon,
            ),
            backgroundColor: color);
}
